Skip to content

Fix/expired session error message - #145

Merged
AndreasGassmann merged 4 commits into
developfrom
fix/expired-session-error-message
Jul 29, 2026
Merged

Fix/expired session error message#145
AndreasGassmann merged 4 commits into
developfrom
fix/expired-session-error-message

Conversation

@AndreasGassmann

Copy link
Copy Markdown
Collaborator

No description provided.

An aged-out session (14 days since loggedInAt) reads as logged-out, so
getSigningMode() falls back to `local` and the env-var check blames a
missing ACURAST_MNEMONIC — true, but it points at the wrong fix for
someone who was logged in and just needs `acurast login` again.

- authStore: split parse() out of read(), add getExpiredAuth() to surface
  a stored-but-expired record (project pin first, matching getActiveAuth)
- signingNotice: expiredSessionMessage() names the account, its age, and
  both ways out; omits the age when loggedInAt is unparseable
- deploy: check for an expired session before validateDeployEnvVars, so
  both `deploy` and `deploy vps` (shared executeDeployFlow) report it

The genuinely-logged-out case still gets the ACURAST_MNEMONIC error.
@AndreasGassmann
AndreasGassmann merged commit 94962f9 into develop Jul 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant